package com.hippoDocker.payment.service.impl;

import com.hippoDocker.commons.entities.Payment;
import com.hippoDocker.payment.dao.PaymentDao;
import com.hippoDocker.payment.service.PaymentService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @ClassName PaymentServiceImpl
 * @Description TODO 支付订单业务处理
 * @Author hippoDocker
 * @Date 2022/5/30 1:03
 **/
@Service
public class PaymentServiceImpl implements PaymentService {
    @Resource
    private PaymentDao paymentDao;

    @Override
    public int createPayment(Payment payment) {
        return paymentDao.createPayment(payment);
    }

    @Override
    public Payment getPaymentById(Long id) {
        return paymentDao.getPaymentById(id);
    }
}
